$('#title').html('填写卡信息');
$('#shortName').val(localStorage.shortName);
		$('#security').click(function(){
			layer.open({
			    content: '安全码为信用卡背后尾三位</br>如5759043则输入043'
			    ,btn: '我知道了'
			  });
		});
		$('#Term').click(function(){
			layer.open({
			    content: '请输入信用卡正面有效期</br>如05/22,则输入0522'
			    ,btn: '我知道了'
			  });
		});
		$('.confirm').click(function(){
			var phoneNo = $('#phoneNo').val();
			var expDate = $('#expDate').val();
				expDatStr = expDate.substring(2)+expDate.substring(0,2);
			var cvn2 = $('#cvn2').val();
			if(!phoneNo.match(/^(1)[0-9]{10}$/)){
				layer.open({
					content:'预留手机号码不合法',
						skin: 'msg',
						time: 2 //2秒后自动关闭
					});
			}else if(expDate == ''){
				layer.open({
					content:'有效期不能为空',
						skin: 'msg',
						time: 2 //2秒后自动关闭
					});
			} else if(cvn2 == ''){
				layer.open({
				content:'安全码不能为空',
						skin: 'msg',
						time: 2 //2秒后自动关闭
					});
			}else{
				Cardlist.bundQuickBankCard({
				userId: localStorage.rpUserId, //用户Id
				bankId: localStorage.bankId, //银行卡id
				customerName: localStorage.userName, //持卡人姓名
				certId: localStorage.cardNo, //银行卡号
				bankName: localStorage.bankName, //银行名称
				acctNo: localStorage.acctNo, //持卡人身份证号
				phoneNo: phoneNo, //银行预留手机号
				cardType: '22', //卡类型
				expDate: expDatStr, //有效期
				cvn2: cvn2 //安全码
			},function(res){
				layer.open({content: '添加信用卡成功！',skin: 'msg',time: 2});
				setTimeout(function() {location.hash = 'cardlist';},2000);
			});
			}
		});